/**
 * Created by dylan_Apple on 17/4/17.
 */
var express = require('express');
var router = express.Router();
var teamUserCtrl = require('../../controller/controller.teamuser');



router.post('/createTeamUser', function (req, res, next) {
    teamUserCtrl.create(req.body, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});

router.get('/getListByUid', function (req, res, next) {
    teamUserCtrl.getListByUId(req.query, function (err, result) {
        if (err) throw err;
        res.send(result);
    });
});


module.exports = router;
